dae6f4f1957a0362b043481cc2caf50b21bdc742,src/com/haskforce/settings/HaskellCompilerConfigurable.java,HaskellCompilerConfigurable,updateVersionInfoFields,#,248
Before Change
* Updates the version info fields for all files configured.
*/
private void updateVersionInfoFields() {
ghcVersion.setText(ExecUtil.readCommandLine(ghcPath.getText(), " --numeric-version"));
cabalVersion.setText(ExecUtil.readCommandLine(cabalPath.getText(), " --numeric-version"));
stackVersion.setText(ExecUtil.readCommandLine(stackPath.getText(), " --numeric-version"));
}
After Change
* Updates the version info fields for all files configured.
*/
private void updateVersionInfoFields() {
updateVersionInfoField("ghc", ghcPath.getText(), "--numeric-version", ghcVersion);
updateVersionInfoField("cabal", cabalPath.getText(), "--numeric-version", cabalVersion);
updateVersionInfoField("stack", stackPath.getText(), "--numeric-version", stackVersion);
}